import lodashGet from 'lodash/get'
import lodashHas from 'lodash/has'

export default {
    //获取任何数据的方法 --注意数据传递顺序
    getStoreData:state => (...args) => {
        if(lodashHas(state, args)){
            return lodashGet(state, args);
        }else {
            return null
        }
    }
};

